Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop nostr_last_checked table, remove references #647

Merged
merged 3 commits into from
Mar 10, 2025

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Mar 10, 2025

Description

#645 removed nostr_last_checked references from the mint storage, but the table schema and data remain.

This PR drops the table from the various storage backends:

  • cdk-sqlite: added a migration to drop the table
  • cdk-redb: due to a typo, the NOSTR_LAST_CHECKED key was pointing to the keyset_counter table, so no nostr_last_checked was ever created. Here, this PR simply removes redb references to NOSTR_LAST_CHECKED.
  • cdk-rexie: bump the DB version and do not add the NOSTR_LAST_CHECKED object store.

Checklist

@ok300 ok300 marked this pull request as ready for review March 10, 2025 10:35
Copy link
Collaborator

@thesimplekid thesimplekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch thanks

@thesimplekid thesimplekid merged commit 1131711 into cashubtc:main Mar 10, 2025
74 checks passed
@ok300 ok300 deleted the ok300-drop-nostr_last_checked-table branch March 10, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants